package src.lab02.test14;

/**
 * Created by 林云志 on 2017/10/23.
 */
public class Rectangle {

    //属性
    double length;
    double width;

    //构造函数
    Rectangle(double length,double width){
        this.length = length;
        this.width = width;}
    //方法
    public double getarea(){
        double area = length * width;
        return area;
    }
}
